Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to pass Eunit tests with Erlang/OTP 26 #17

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

lemenkov
Copy link
Contributor

@lemenkov lemenkov commented Jun 21, 2024

In Erlang 25 and older an unknown error message is formatted like this:

1> file:format_error(unexpected).
"unknown POSIX error"

However since Erlang 26 the resulst is different:

1> file:format_error(unexpected).
"unknown POSIX error: unexpected"

Let's add another case to handle both variants.

(Based on processone/pkix@fea5340)

In Erlang 25 and older an unknown error message is formatted like this:

  1> file:format_error(unexpected).
  "unknown POSIX error"

However since Erlang 26 the result is different:

  1> file:format_error(unexpected).
  "unknown POSIX error: unexpected"

Let's add another case to handle both variants.

Signed-off-by: Peter Lemenkov <[email protected]>
@coveralls
Copy link

Coverage Status

coverage: 16.509% (-0.01%) from 16.522%
when pulling 43ad5a2 on lemenkov:otp-26-error-messages
into ba81675 on processone:master.

@prefiks prefiks merged commit 9427dd0 into processone:master Jun 21, 2024
3 of 4 checks passed
@prefiks
Copy link
Member

prefiks commented Jun 21, 2024

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants